/*
 * Start here! This class creates a JFrame (a "container" for swing objects)
 * then 'adds' the JPanel "Main" to it. This means that the contents of the 
 * JPanel are now displayed in this JFrame.
 *
*/

package block;

import javax.swing.JFrame;

public class BlockShooter extends JFrame {
	
  // Our constructor. 
	public BlockShooter() {
   
		// Add the JPanel Main to this JFrame. 
    // "new Main()" is creating an instance of the Main.java class.
		add(new Main());
		
    // Here we define the properties of our JFrame.  
    // Most are pretty self explanatory.
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setSize(400,300);
    setLocationRelativeTo(null);
		setTitle("Block Shooter");
		setResizable(false);
		setVisible(true); // Inportant, or you won't see it!
	}
	
  // Our main method, not unlike any other. This creates an instance
  // of this class and gets things rolling.
  // After these commands all finish all program control is now in
  // the hands of the Main.java class.
	public static void main(String[] args) {
		new BlockShooter();
	}
}
